<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="/static/include/taglib.jsp" %>
<!DOCTYPE html >
<html>
<head>
    <meta name="viewport" content="width=device-width"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>后台管理--模板编辑</title>
    <link href="${ctxStatic}/layui/css/layui.css" rel="stylesheet"/>
    <link href="${ctxStatic}/css/kpiuitanchu.css" rel="stylesheet"/>
    <script src="${ctxStatic}/js/jquery-1.8.3.min.js?v=2.0" type="text/javascript"></script>
    <script src="${ctxStatic}/layui/layui.all.js" type="text/javascript"></script>
</head>
<body>
<div class="tanchucontent" style="width:90%">
    <form class="layui-form" id="formedit" name="formedit" action="updateMzpd" method="post"
          target="d41d8cd98f00b204e9800998ecf8427e">
        <iframe name="d41d8cd98f00b204e9800998ecf8427e" src="about:blank" style="display:none;"></iframe>
        <table>
            <tr>
                <td class="td_right">具体原因：</td>
                <td>
                    <textarea class="layui-input" name="reason" style="height: 100px">${entity.reason}</textarea>
                    <%--<input class="layui-input" value="${entity.reason}" style="height: 100px;word-break:break-all;" name="reason"></td>--%>
            </tr>
            <tr>
                <td colspan="2"> &nbsp;</td>
            </tr>
            <tr>
                <td class="td_right">拟采取帮教措施：</td>
                <td>
                    <textarea class="layui-input" name="howtodo" style="height: 100px">${entity.howtodo}</textarea>

                </td>
            </tr>
            <tr>
                <td colspan="2"> &nbsp;</td>

            <tr>
                <td class="td_right">备注：</td>
                <td>
                    <textarea class="layui-input" name="remark" style="height: 100px">${entity.remark}</textarea>


                </td>
            </tr>
            <tr>
                <td style="text-align: center;height:50px" colspan="2">
                    <button class="button" lay-submit="" lay-filter="demo1" id="btnsave">保存</button>
                    <input type="button" value="关闭" class="button" onclick="top.CloseOpenWindow()"/>
                </td>
            </tr>
        </table>

        <input type="hidden" id="status" value="${entity.status}">
        <input type="hidden" name="mzpdpassnoid" value="${entity.mzpdpassnoid }">
        <input type="hidden" name="yearid" value="${year}">
        <input type="hidden" name="quarter" value="${quarter}">
        <input type="hidden" name="orgid" value="${orgid}">
        <input type="hidden" name="cardno" value="${cardno}">
    </form>
</div>
</body>
<script>
    $(function () {


        if ($('#status').val() > 0) {
            $('.layui-input').attr('disabled', 'disabled')
            $('#btnsave').attr('disabled', 'disabled')

        }

    })


    function closeD(result) {


        top.frames["iframe"].closeD(result);

    }

    layui.use(['form', 'laydate'], function () {
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功
        //
    })
</script>
</html>
